package com.baizhi.controller;

import com.baizhi.dao.CompanyDao;
import com.baizhi.entity.Company;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("company")
public class CompanyController {
    @Autowired
    private CompanyDao companyDao;
    @RequestMapping("select")
    public List<Company> select(){
        return companyDao.select();
    }
}
